<%-- 
    Document   : listCorporate
    Created on : Jan 13, 2014, 1:13:46 PM
    Author     : santosh
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <%@include file="../common/script.jsp" %>
        <%@include file="../common/title.jsp" %>
    </head>
    <body>
        <%@include file="../common/header.jsp" %>
        <%@include file="../common/menu.jsp" %>

        <div class="in_02">
            &nbsp;&nbsp;&nbsp;<strong style="margin:0 100px 0 0"><spring:message code="title.listCorporate"/></strong>
            <br/><br/>
            <div style="float: left;">
                &nbsp;&nbsp;&nbsp;<c:out value="${fn:length(corporateList)}"/> <spring:message code="rowsFound"/>
                <table class="data_table" border="1px" style="width: 50%;width: 700px;">
                    <thead>
                        <tr class="header">
                            <td align="center" style="width: 15%;">Corporate Id</td>
                            <td align="center" style="width: 30%;">Corporate Name</td>
                            <td align="center">Status</td>
                            <td align="center" style="width: 25%;">Last Modified By</td>
                            <td align="center" style="width: 30%;"><label>Last Modified Date</label> <br>(dd/MM:yy HH:mm)</td>
                                <sec:authorize ifAnyGranted="ROLE_BF_CORPORATE_EDIT">
                                <td>&nbsp;</td>
                            </sec:authorize>
                        </tr>
                    </thead>
                    <c:forEach items="${corporateList}" var="Item">
                        <tr>
                            <td align="center">${Item.paymentTypeId}</td>
                            <td>${Item.paymentTypeName}</td>
                            <td align="center"><c:choose><c:when test="${Item.active==true}">1</c:when><c:otherwise>0</c:otherwise></c:choose></td>
                            <td align="center">${Item.lastModifiedBy.username}</td>
                            <td align="center"><fmt:formatDate value="${Item.lastModifiedDate}" pattern="dd/MM/yy HH:mm"/></td>
                            <sec:authorize ifAnyGranted="ROLE_BF_CORPORATE_EDIT">
                                <td><a href="../corporate/editCorporate.htm?corporateId=<c:out value="${Item.paymentTypeId}"/>">Edit</a></td>
                            </sec:authorize>
                        </tr>
                    </c:forEach>
                </table>
                &nbsp;&nbsp;&nbsp;<c:out value="${fn:length(corporateList)}"/> <spring:message code="rowsFound"/>
            </div>
        </div>
    </body>
</html>
